<div class="form">
    <?php echo Html::beginForm(); ?>
    <table style="width: 100%">
        <tr>
            <td style="width: 250px; vertical-align: top">
                <!--<div style="font-weight: bold;padding-bottom: 5px;">Tasks</div>-->
                <?php
                $criteria = new CDbCriteria();
                $criteria->condition = "type=:type";
                $criteria->order = "name";
                $criteria->params = array(":type" => AuthorizationType::TASK);

                echo '<label style="font-weight: bold;">'. t('LBL_TASKS', 'authAssignment') .'</label> <br />';
                echo Html::dropDownList('tasks', null, Html::listData(AuthItem::model()->findAll($criteria), 'name', 'name'), array(
                    'size' => 20,
                    'class' => 'dropdown',
                    'style' => 'width:200px',
                    'onchange'=>'$("#div-opers").html("<div class=\"ajax-loading\"></div>");',
                    'ajax' => array(
                        'type' => 'POST',
                        'url' => array('getOpers'),
                        'update' => '#div-opers',
                    ),
                        )
                );
                ?>
            </td>
            <td style="vertical-align: top">
<!--                <div>
                    <table>
                        <tr>
                            <td style="width: 200px;font-weight: bold;">Assigned Operations</td>
                            <td style="width: 50px;font-weight: bold;"></td>
                            <td style="width: 200px;font-weight: bold;">Not Assigned Operations</td>
                        </tr>
                    </table>
                </div>-->

                <div id="div-opers">
                    <?php
                    $this->renderPartial(
                            '_taskAjax', array('model' => $model, 'data' => $data)
                    );
                    ?>
                </div>
            </td>
        </tr>
    </table>
    <?php echo Html::endForm(); ?>
</div>